dlbc.io.hdf5

Functions that handle (parallel) IO to disk via HDF5.

Members

Functions

dumpAttributeHDF5
void dumpAttributeHDF5(const T data, const string name, hid_t loc_id)

Dump a single piece of data as an attribute to an HDF5 file.

dumpFieldHDF5
void dumpFieldHDF5(ref T field, const string name, const uint time = 0, const bool isCheckpoint = false)

Write a field to disk using HDF5.

dumpInputFileAttributes
void dumpInputFileAttributes(hid_t loc_id)

Dump the contents of the input file as an attribute.

dumpMetadata
void dumpMetadata(const hid_t root_id)

Write metadata as attributes.

endHDF5
void endHDF5()

This function wraps a call to H5close() to gracefully shut down HDF5.

hdf5LengthOf
hsize_t hdf5LengthOf()

This template function returns the length of a static array of type T or 1 if the type is not an array.

hdf5Typeof
hid_t hdf5Typeof()

This template function returns an HDF5 data type identifier based on the type T. If T is an array, the base type is returned.

readAttributeHDF5
T readAttributeHDF5(const string name, hid_t loc_id)

Read a single piece of data from an attribute of an HDF5 file.

readFieldHDF5
void readFieldHDF5(ref T field, const string fileNameString, const bool isCheckpoint = false)

Read a field from disk using HDF5.

readInputFileAttributes
string[] readInputFileAttributes(const string fileNameString)

Read the contents of the input file attribute into strings.

startHDF5
void startHDF5()

This function wraps a call to H5open() to start up HDF5 and reports the version of the HDF5 library.

Variables

writeChunked
bool writeChunked;

Use chunked HDF5. This is normally not recommended.

Meta

Authors

Stefan Frijters